package com.leyou.item.services;

import com.leyou.common.vo.PageResult;
import com.leyou.item.pojo.Sku;
import com.leyou.item.pojo.Spu;
import com.leyou.item.pojo.SpuDetail;

import java.util.List;

/**
 * @Date 2018/12/16  15:43
 * @Author JIE
 */
public interface GoodsService {

   public PageResult<Spu> querySpuByPage(Integer page, Integer rows, Boolean saleable, String key);

   public  void saveGoods(Spu spu);

   SpuDetail queryDetailById(Long id);

    List<Sku> querySkuBySpuId(Long spuId);

    void updateGoods(Spu spu);

    void deleteGoods(Long spuId);

    void unShelveGoods(Long spuId);

    void putawayGoods(Long spuId);

    Spu querySpuById(Long id);
}
